using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Peradigm.Framework.Domain.Security;
using Peradigm.Framework.UI.Web;

using Liberty.Domain.NoteManagement;

namespace Liberty.UI.NoteManagement.Controls
{
    public partial class NoteListView : AbstractLibertyControl
    {
        #region Constants
        private const string
            CONTROL_NOTE_VIEW = "ucNoteView";
        #endregion

        #region Event Handlers
        protected void rptNotes_ItemDataBound( object sender, RepeaterItemEventArgs e )
        {
            NoteView noteView = (NoteView)e.Item.FindControl( CONTROL_NOTE_VIEW );
            noteView.Model = e.Item.DataItem;
        }
        #endregion

        #region Methods
        #endregion

        #region Properties
        #endregion

        #region Private Methods
        public override void UpdateView()
        {
            rptNotes.DataSource = this.Model;
            rptNotes.DataBind();
        }
        #endregion

        #region Private Properties
        private User ApplicationUser
        {
            get
            {
                UserVariable userVariable = new UserVariable();
                return userVariable.User;
            }
        }
        #endregion

        #region Construction and Finalization
        #endregion

        #region Data Elements
        #endregion
    }
}